package com.zhou.project.modules.circle.circleGroup.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhou.project.components.base.entity.Base;
import com.zhou.project.modules.circle.circleType.entity.CircleType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Setter
@Getter
@TableName(value = "ucc_circle_type",resultMap = "GroupResultMap")
@ApiModel("[圈子模块-组织创建-数据模型]")
public class CircleGroup extends Base {


    @ApiModelProperty(name = "name",value = "组织名称",required = true,dataType = "String")
    @NotBlank(message = "组织名称不可以为空")
    @Length(min=2,max = 15,message = "圈子名称的长度应为{min}-{max}之间")
    private String name ;

    @ApiModelProperty(name = "introduce",value = "组织介绍",required = true,dataType = "String")
    @NotBlank(message = "组织介绍不可以为空")
    @Length(min=2,max = 15,message = "组织介绍的长度应为{min}-{max}之间")
    private String introduce ;

    @ApiModelProperty(name = "circleId",value = "圈子类型id",required = true,dataType = "int")
        private int circleId ;
    @TableField(exist = false)
    private CircleType circleType;
}
